submitForm_${viewCode}: function() {
    let vue = this;
    this.$refs["${viewCode}"].validate((valid) => {
        if (valid) {
            $.ajax({
                url: "${(jsonSchema.url)!}",
                type: 'POST',
                dataType: 'json',
                contentType: 'application/json',
                data: JSON.stringify(vue.${viewCode}),
                error: function() {
                    vue.$message.error('提交失败! 请稍后重试!');
                    vue.${viewCode}.submitStatus = "error";
                },
                success: function(ret) {
                    vue.$message({
                        message: '处理成功!',
                        type: 'success'
                    });

                    vue.${viewCode}.submitStatus = "success";
                }

            });
        } else {
            vue.$message.error('请检查必填参数!');
            vue.${viewCode}.submitStatus = "validateError";
            return false;
        }
    });
},
resetForm_${viewCode}: function() {
    this.$refs["${viewCode}"].resetFields();
}
<#if buttons??>
    ,
    <#list buttons as button>
        <#if button.onclick??>
            v_${button.onclick}: function() {
                <#if button.sysFunction??>
                    <#if button.sysFunction == "submit">
                        this.submitForm_${viewCode}();
                        if (this.${viewCode}.submitStatus == "error" || this.${viewCode}.submitStatus == "validateError") {
                            return;
                        }
                    <#elseif button.sysFunction == "reset">
                        this.resetForm_${viewCode}();
                    </#if>
                </#if>
                ${button.onclick}(this);
            }
        <#else>
            v_${viewCode}_${button?index}: function() {}
        </#if>
        <#sep>,
    </#list>
</#if>